- 
                Notifications
    
You must be signed in to change notification settings  - Fork 16
 
feat(action_flag): add option to get the whole action #693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| 
           we will also need to update the langchain and the llamaindex docs  | 
    
| 
           I think we should do the same for   | 
    
1d0930c    to
    ce192e1      
    Compare
  
    There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds a return_all_action flag to support returning the complete action object (including status, metadata, and user decisions) in Human-In-The-Loop scenarios, instead of only returning action.data.
- Added 
return_all_actionboolean field toCreateActionmodel with default value ofFalse - Updated HITL reader logic to check the flag and return serialized full action object when enabled
 - Added comprehensive test coverage for the new functionality
 
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description | 
|---|---|
| src/uipath/models/interrupt_models.py | Added return_all_action boolean field to CreateAction model | 
| src/uipath/_cli/_runtime/_hitl.py | Updated HITL reader to parse flag from payload and return full action object when enabled | 
| tests/cli/test_hitl.py | Added test case to verify full action object is returned when flag is true | 
| pyproject.toml | Updated version number and simplified include configuration | 
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
7c450ed    to
    53b900c      
    Compare
  
    53b900c    to
    e6b0b08      
    Compare
  
    
Description
Add return_all_action flag to support full action object retrieval in HITL scenarios
Problem
Some applications require access to the complete action object (including status, metadata, and user decisions) when processing Human-In-The-Loop (HITL) responses, but the current implementation only returns action.data. This limitation prevents applications from accessing critical fields like the action status field that indicates user decisions (e.g., "Reject", "Approve").
Jira: PRODEV-237